package com.future.myjavatools.core.zhoupu;

import com.google.common.base.Preconditions;

import java.util.List;

/**
 * @author huiming.suo
 * @date 2018/1/27
 * @remark
 */
public class NumberUtil {

    public static boolean hasLessThenZero(List<Integer> intList) {
        Preconditions.checkArgument(CollectionUtil.isNotEmpty(intList), "intList不能为空");
        for (Integer integer : intList) {
            if (integer == null || integer < 0) {
                return true;
            }
        }
        return false;
    }
}
